home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 April: Mac OS SDK / Dev.CD Apr 00 SDK1.toast / Development Kits / Mac OS / Security SDK / Includes / CryptoMessageSyntax.p < prev    next >
Encoding:
Text File  |  1999-10-28  |  2.4 KB  |  110 lines  |  [TEXT/CWIE]

  1. {
  2.      File:        CryptoMessageSyntax.p
  3.  
  4.      Contains:    Apple Cryptographic Message Syntax Pascal interfaces.
  5.  
  6.      Version:    1.0
  7.  
  8.      Copyright:    © 1998-1999 by Apple Computer, Inc., all rights reserved
  9.  
  10.      Bugs?:        Please include the the file and version information (from above) with
  11.                  the problem description.  Developers belonging to one of the Apple
  12.                  developer programs can submit bug reports to:
  13.  
  14.                      devsupport@apple.com
  15.  
  16. }
  17. {$IFC UNDEFINED UsingIncludes}
  18. {$SETC UsingIncludes := 0}
  19. {$ENDC}
  20.  
  21. {$IFC NOT UsingIncludes}
  22.  UNIT CryptoMessageSyntax;
  23.  INTERFACE
  24. {$ENDC}
  25.  
  26. {$IFC UNDEFINED __CRYPTOMESSAGESYNTAX__}
  27. {$SETC __CRYPTOMESSAGESYNTAX__ := 1}
  28.  
  29. {$I+}
  30. {$SETC CryptoMessageSyntaxIncludes := UsingIncludes}
  31. {$SETC UsingIncludes := 1}
  32.  
  33. {$IFC UNDEFINED __MACTYPES__}
  34. {$I MacTypes.p}
  35. {$ENDC}
  36. {$IFC UNDEFINED __CFARRAY__}
  37. {$I CFArray.p}
  38. {$ENDC}
  39. {$IFC UNDEFINED __CFBAG__}
  40. {$I CFBag.p}
  41. {$ENDC}
  42. {$IFC UNDEFINED __CFDATA__}
  43. {$I CFData.p}
  44. {$ENDC}
  45. {$IFC UNDEFINED __CFDATE__}
  46. {$I CFDate.p}
  47. {$ENDC}
  48. {$IFC UNDEFINED __CFSET__}
  49. {$I CFSet.p}
  50. {$ENDC}
  51. {$IFC UNDEFINED __CFSTRING__}
  52. {$I CFString.p}
  53. {$ENDC}
  54. {$IFC UNDEFINED __KEYCHAIN__}
  55. {$I Keychain.p}
  56. {$ENDC}
  57.  
  58. {
  59.     Data structures and types
  60. }
  61.  
  62. {$PUSH}
  63. {$ALIGN MAC68K}
  64. {$LibExport+}
  65.  
  66.  
  67. TYPE
  68.     SecTypeRef = ^LONGINT; { an opaque 32-bit type }
  69.     SecSignerRef = ^LONGINT; { an opaque 32-bit type }
  70. { Signer object manipulation }
  71. FUNCTION SecSignerGetStatus(signer: SecSignerRef): OSStatus;
  72. FUNCTION SecRetain(sec: SecTypeRef): SecTypeRef;
  73. PROCEDURE SecRelease(sec: SecTypeRef);
  74. FUNCTION SecRetainCount(sec: SecTypeRef): UInt32;
  75. { Errors Codes  }
  76.  
  77. CONST
  78.     errSecUnsupported            = -13843;
  79.     errSecInvalidData            = -13844;
  80.     errSecTooMuchData            = -13845;
  81.     errSecMissingData            = -13846;
  82.     errSecNoSigners                = -13847;
  83.     errSecSignerFailed            = -13848;
  84.     errSecInvalidPolicy            = -13849;
  85.     errSecUnknownPolicy            = -13850;
  86.     errSecInvalidStopOn            = -13851;
  87.     errSecMissingCert            = -13852;
  88.     errSecInvalidCert            = -13853;
  89.     errSecNotSigner                = -13854;
  90.     errSecNotTrusted            = -13855;
  91.     errSecMissingAttribute        = -13856;
  92.     errSecMissingDigest            = -13857;
  93.     errSecDigestMismatch        = -13858;
  94.     errSecInvalidSignature        = -13859;
  95.     errSecAlgMismatch            = -13860;
  96.     errSecUnsupportedAlgorithm    = -13864;
  97.     errSecContentTypeMismatch    = -13865;
  98.     errSecDebugRoot                = -13866;
  99.  
  100. {$ALIGN RESET}
  101. {$POP}
  102.  
  103. {$SETC UsingIncludes := CryptoMessageSyntaxIncludes}
  104.  
  105. {$ENDC} {__CRYPTOMESSAGESYNTAX__}
  106.  
  107. {$IFC NOT UsingIncludes}
  108.  END.
  109. {$ENDC}
  110.